function y = thresh(i)
    y = i > 0.5;
end